package com.masterclient.app.modules.cart.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.masterclient.app.base.ProgressLoginDialog;
import com.masterclient.app.modules.cart.beans.ShopCartBean;
import com.eoner.baselibrary.bean.order.ConfirmOrderData;

/**
 * 作者：sean
 * 创建时间：2017/7/18 19:10
 * 功能说明：
 */

public interface ShopCartContract {

    interface View extends BaseView {
        void showShopCartList(ShopCartBean shopCartBean);
        void showShopCartListFailed(String msg);
        void updateShopCartList();
        void updateShopCartListFailed(String msg);
        void collectShopCartList();
        void collectShopCartListFailed(String msg);
        void deleteShopCartList();
        void deleteShopCartListFailed(String msg);
        void confirm_order_success(ConfirmOrderData data,String buyProducts);

        void confirm_order_failed(String msg);
    }


    abstract class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {
        }

        public abstract void getShopCartList(String cart_id, ProgressLoginDialog progressLoginDialog);
        public abstract void updateShopCartList(String cart_id, String num, ProgressLoginDialog progressLoginDialog);
        public abstract void collectShopCartList(String cart_id, ProgressLoginDialog progressLoginDialog);
        public abstract void deleteShopCartList(String cart_id, ProgressLoginDialog progressLoginDialog);
        public abstract void confirm_order(String buy_product, String buy_type,String sale_type, ProgressLoginDialog progressLoginDialog);
    }
}